package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberDao {
   List<Member> findAll();
   Page<Member> selectByCondition(String queryString);
   void add(Member member);
   void deleteById(Integer id);
   Member findById(Integer id);
   Member findByTelephone(String telephone);
   void edit(Member member);
   Integer findMemberCountBeforeDate(String date);
   Integer findMemberCountByDate(String date);
   Integer findMemberCountAfterDate(String date);
   Integer findMemberTotalCount();

    //会员性别占比饼图

    List<Map> getMemberSexReport();
   Integer findMemberCountBy2Date(@Param("startDate1") String startDate1,@Param("endDate1") String endDate1);
}
